{% extends "base.html" %}

{% block content %}
{% if message %}
<span>{{ message }}</span>
{% endif %}

<h1>New Character</h1>

<form name="characterform" action="." method="post">
{{ characterform.as_p }}
{% if can_save %}
<input type="submit" value="save" />
{% else%}
Choose {{skill_limit}} skills from list below.
{% endif %}
</form>

{% if skillset %}
<ul>
{% for skill in skillset %}
<li><form action="." method="post"> {{skill}} &nbsp; &nbsp; 
<input type="hidden" name="removeskill" value="{{skill.id}}"/>
<input type="submit" value="remove"/> </form></li>
{% endfor %}
</ul>
{% endif %}
<form name="skilltrain" action="." method="POST">
{{ skillform.as_p }}
<input type="submit" value="train" />
</form>
{% endblock %}